package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.UserActiveService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 王越潇
 * @version 1.0
 * @Date 2024/10/9 10:48
 * @Type
 */
@RestController
@RequestMapping("ma/userActive")
@Api(tags = "用户参与活动管理")
public class UserActiveController {
    @Resource
    private UserActiveService userActiveService;
    @GetMapping("findById/{activeId}")
    @ApiOperation("查询参加该活动的用户")
    public ResponseResult findById(@PathVariable("activeId")Integer activeId){
        return userActiveService.findById(activeId);


    }
}
